package com.uobgroup.cmt.conversion;


import javax.sql.DataSource;

import org.apache.log4j.Logger;

import com.uobgroup.cmt.base.exception.BaseException;
import com.uobgroup.cmt.base.factory.SpringBeanFactory;

public class App003 {
	protected static Logger logger = Logger.getLogger(App003.class);

	/**
	 * @param args
	 * @throws BaseException 
	 */
	public static void main(String[] args) throws BaseException {
		logger.info("Application Started");
		
		@SuppressWarnings("unused")
		DataSource dataSource01 = (DataSource) SpringBeanFactory.getInstance().getBean("cmtDataSource");
		
//		JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource01);
		
//		logger.info(System.currentTimeMillis());
//		List<PartyModel> list = jdbcTemplate.query("select cif_no, legal_name, class_indicator, salutation_code, type_code from tcls_party where cif_no = '0000000003000016250'", new PartyRowMapper());
//		logger.info(list.size());
//		logger.info(System.currentTimeMillis());

		
	}

}
